home *** CD-ROM | disk | FTP | other *** search
- >>Anyone have any AMOS code for doing a pattern match on a string?
- > >>e.g. *.AMOS or #?.AMOS to see if a string contains .AMOS in it
- > >>anywhere.
- > >>Saves me writing it myself...
- >
- > >A=Instr(<string to check>,<string to search for>)
- >
- > THAT's NOT A PATTERN MATCH, but a character match
-
- Yes. A few people have misunderstood me I think.
- This is what I need.
- using: #?amos#?pro :as a pattern would respond
- True for "amos pro" or "amos not pro" or "not amos pro" or "not amos
- not pro" etc. As long as it has Anything, then the word "amos" then
- anything else and then the word "pro" and nothing else.... get it?
-
- No-one programmed anything like this?
- I know some extension use it (AMCAF) and you can access the Pattern
- Match in a library somehow but I'd rather let it work with 1.3 dos as
- well.
-
- -Murray
-
-
- --
-
- \\|// Alastair Murray
- (o o) malcolm.murray@virgin.net
- |~~~~~~oOOo~(_)~oOOo~~~~~|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
- | AMINET |Web-Page (Amiga/Games/AMOS/trek/Music/ |
- | game/role/CHAOS | +more) |
- |game/jump/Banana Islands|http://freespace.virgin.net/malcolm.murray|
- | game/shoot/Hanger18 |Current Projects: >Chaos 2 |
- | dev/amos/keystate | >Kill Em All >Hanger 18 II |
- | dev/amos/picpack | >Skool Daze >The Crow |
- | game/shoot/traitor | >Banana Islands |
- | game/shoot/extinct | >The Turtleminator |
- | game/jump/blobby | >Backbone - The Game Creator |
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
-
-